﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    /// <summary>
    /// 员工信息
    /// </summary>
    public class Employee
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 员工编号自动生成，格式为yyyyMMdd+3位随机数
        /// </summary>
        public string Code { get; set; }    
        public string Name { get; set; }
        /// <summary>
        /// 角色 Id
        /// </summary>
        public int RoleId { get; set; }

        /// <summary>
        /// true表示已删除
        /// </summary>
         public bool IsDeleted { get; set; }
        /// <summary>
        /// 状态【1启用/2禁用】
        /// </summary>
        public int Start { get; set; }

    }
}
